package com.qing.common.util

/**
 * @author qing <br/>
 * 2025/2/28
 */
object ConvertUtils {
    fun <T> applyConvert(obj: Any?, clazz: Class<T>, converter: (T) -> Unit) {
        if (clazz.isInstance(obj)) {
            converter.invoke(clazz.cast(obj)!!)
        }
    }
}